<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <base href="./">
    <link href="libs/layui/css/layui.css" rel="stylesheet">
    <script type="text/javascript" src="libs/jquery/jquery-1.11.1.js"></script>
    <script type="text/javascript" src="libs/layui/layui.all.js"></script>
    <script type="text/javascript" src="libs/js/util.js"></script>
    <script type="text/javascript" src="libs/js/mylayer.js"></script>
    <link href="css/css.css" rel="stylesheet">
    <style type="text/css">
        .layui-table {
            margin-left: 30px !important;
        }
    </style>
</head>
<body>
<div class="demoTable">
    <script type="text/javascript">
        function del(id) {
            if (confirm("确认删除?")) {
                location.href = 'Client?cmd=delete&id='+id+"&checkin_id=${checkin_id}";
            }
        }
    </script>
    <form action="Client" method="post">
       <label>房间号:</label><label>${info.room_name}</label>
        <button class="layui-btn" type="button" onclick="location.href='Client?cmd=add&checkin_id=${checkin_id}'">新增</button>
    </form>
</div>

<div class="layui-form layui-border-box layui-table-view">
    <div class="layui-table-box">
        <div class="layui-table-body layui-table-main">
            <table class="layui-table">
                <thead>
                <tr>
                    <td style="width: 100px;">客户名</td>
                    <td style="width: 200px;">性别</td>
                    <td style="width: 200px;">电话</td>
                    <td style="width: 200px;">身份证号</td>
                    <td>操作</td>
                </tr>
                </thead>
                <tbody>

                <c:forEach items="${list}" var="row" varStatus="v">
                    <tr>
                        <td>${row.name}</td>
                        <td>${row.sexname}</td>
                        <td>${row.tel}</td>
                        <td>${row.code}</td>
                        <td>
                            <a href="javascript:;" onclick="del(${row.id});">删除</a>
                            <a href="Client?cmd=edit&id=${row.id}">修改</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
</div>

</body>
</html>